#include "showwidget.h"
#include <QHBoxLayout>

ShowWidget::ShowWidget(QWidget *parent)
	: QWidget{parent}
{
	QPixmap icon(":/new/prefix1/image.png");
	this->imageLabel = new QLabel();
	imageLabel->setPixmap(icon);
	imageLabel->setScaledContents(true);
	// 图片自适应大小
	this->text = new QTextEdit;
	QHBoxLayout * mainlayout;
	mainlayout = new QHBoxLayout(this);
	mainlayout->addWidget(imageLabel);
	mainlayout->addWidget(text);
}

